export interface IOptionBase {
  label: string | number;
  disabled?: boolean;
  [key: string]: any;
}

export interface IOptionWithValue extends IOptionBase {
  value: string | number | boolean | object;
  options?: never;
}

export interface IOptionWithOptions extends IOptionBase {
  options: IOptionItem[];
  value?: never;
}

// value 和 options 只需存在一个
export type IOptionItem = IOptionWithValue | IOptionWithOptions;
